<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>

        /*点击图片进行图片切换*/
        window.onload=function (){
            var img=document.getElementById("checkcode");
            img.onclick=function () {
                /*时间戳*/
                var time = new Date().getTime();
                img.src="/session/code?"+time;
            }
        }

    </script>
</head>
<body>
<img id="checkcode" src="/session/code">
<a id="change" href="">看不清换一张?</a>
</body>
</html>